import request from '/@/utils/request';

/**
 * 商品品牌API
 */
export default {
	addBrand: (data: object) => {return request({url: '/admin/goods/brand/add', method: 'post', data})},

	listBrand: (params?: any) => {return request({url: '/admin/goods/brand/page', method: 'get', params})},

	editBrand: (data: object) => {return request({url: '/admin/goods/brand/edit', method: 'post', data})},

	deleteBrand: (params?: any) => {return request({url: '/admin/goods/brand/delete', method: 'get', params})},

	uploadBrandLogo: (data: object) => {return request({url: '/admin/goods/brand/upload', method: 'post', data, headers: { 'Content-Type': 'multipart/form-data;charset=UTF-8' }})},

}
